package com.qcby.byc.demo0422.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @className: Depart
 * @description:
 * @author: lxt
 * @create: 2021-04-22 17:13
 **/
public class Depart {
    private Long id;
    private String departName;
    /**
     * 部门创建时间，由前台传入
     */
    // 格式化传入参数的时间格式
//    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    // 2021-04-20 10:00:00
    // 格式化返回给前台时间参数的格式
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;




    private List<Person> personList;
    private List<Manager> managerList;

    public List<Manager> getManagerList() {
        return managerList;
    }

    public void setManagerList(List<Manager> managerList) {
        this.managerList = managerList;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public List<Person> getPersonList() {
        return personList;
    }

    public void setPersonList(List<Person> personList) {
        this.personList = personList;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getDepartName() {
        return departName;
    }

    public void setDepartName(String departName) {
        this.departName = departName;
    }
}
